<template>
	<view class="background-color_FFFFFF">
		<view class="padding-bottom_20rpx p-bo font-size_32rpx font-weight_bold margin-bottom_30rpx">1.{{obj.heading}}</view>
		<rich-parser :html="obj.content" domain="https://6874-html-foe72-1259071903.tcb.qcloud.la" lazy-load
			ref="article" selectable show-with-animation use-anchor>
		</rich-parser>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',

				obj: {},
			}
		},

		onLoad(options) {
			if (options.id) {
				this.id = options.id;
				this.info();
			}
		},

		onShow() {

		},

		methods: {

			async info() {
				const result = await this.$http.post({
					url: this.$api.helpDetail,
					data: {
						id: this.id
					}
				});
				if (result.code == 2000) {
					this.obj = result.data;
				} else {
					this.$sun.toast(result.msg, 'none');
				}
			},

		}
	}
</script>

<style lang="scss">
	.background-color_FFFFFF {
		width: 750rpx;
		padding: 30rpx 24rpx;
	}

	page {
		padding-top: 6rpx;
	}
</style>